HAL GFXTIM migration: List of applicable concepts ¶
This section provides information about the HAL GFXTIM applicable architecture concepts.
Concepts for GFXTIM ¶
|
Concept |
Description |
|---|---|
|
|
|
Removal and conversion of init structure to configuration structure |
The init structure has been removed from the handle and converted into set configuration per functional blocks function. |
|
The handle structure has been renamed to
|
|
|
The structure
|
|
|
|
|
|
New APIs are available to get and set GFXTIM features. |
|
|
Two functions to set/get user data are available:
|
|
|
Individual callback registration APIs replace global register and unregister functions |
The callback registration is handled by specific functions for each GFXTIM event. These functions are used to register callback functions for different GFXTIM events. |
|
HAL GFXTIM APIs now rely on LL APIs rather than performing direct register access. |
|
|
Define statements and enumerations redirected to LL equivalents |
HAL GFXTIM define statements and enumerations are based on LL define statements. |
|
All hardware macros have been removed from the HAL GFXTIM driver, and equivalent services are ensured through the LL APIs. |
|
|
The GFXTIM state machine is reworked to ensure transitions of the peripheral functional states. The GFXTIM is managed by six state machines:
|
|
|
The HAL ADC functions were updated to return:
|
|
|
All TypeDef parts of the HAL GFXTIM driver have been removed and replaced by
|
|
|
Const keywords have been added to non-modifiable pointers to ensure that either the pointer itself or the data it points to cannot be modified. This enhances code safety and readability, prevents unintended modifications, and renders code more robust and maintainable. |
|
|
Parameters and states are checked using
|
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including GFXTIM instances) have been converted into enumerated types (enums) at HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL GFXTIM functions start with
|
Other HAL GFXTIM changes ¶
|
Concept |
Consideration |
|---|---|
|
Add new LL GFXTIM layer. |
Provide new LL layer for GFXTIM peripheral to reach the full granularity of features configuration. |